package com.mkait.thief.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName plugin_guide
 */
@TableName(value ="plugin_guide")
@Data
public class PluginGuide implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "logo")
    private String logo;

    /**
     * 
     */
    @TableField(value = "title")
    private String title;

    /**
     * 
     */
    @TableField(value = "subtitle")
    private String subtitle;

    /**
     * 
     */
    @TableField(value = "subtitle_line1")
    private String subtitleLine1;

    /**
     * 
     */
    @TableField(value = "subtitle_line2")
    private String subtitleLine2;

    /**
     * 
     */
    @TableField(value = "buttons")
    private String buttons;

    /**
     * 
     */
    @TableField(value = "theme_id")
    private Integer themeId;

    /**
     * 开启，关闭
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "update_at")
    private Integer updateAt;

    /**
     * logo开关
     */
    @TableField(value = "logo_open")
    private Integer logoOpen;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PluginGuide other = (PluginGuide) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getLogo() == null ? other.getLogo() == null : this.getLogo().equals(other.getLogo()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getSubtitle() == null ? other.getSubtitle() == null : this.getSubtitle().equals(other.getSubtitle()))
            && (this.getSubtitleLine1() == null ? other.getSubtitleLine1() == null : this.getSubtitleLine1().equals(other.getSubtitleLine1()))
            && (this.getSubtitleLine2() == null ? other.getSubtitleLine2() == null : this.getSubtitleLine2().equals(other.getSubtitleLine2()))
            && (this.getButtons() == null ? other.getButtons() == null : this.getButtons().equals(other.getButtons()))
            && (this.getThemeId() == null ? other.getThemeId() == null : this.getThemeId().equals(other.getThemeId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getUpdateAt() == null ? other.getUpdateAt() == null : this.getUpdateAt().equals(other.getUpdateAt()))
            && (this.getLogoOpen() == null ? other.getLogoOpen() == null : this.getLogoOpen().equals(other.getLogoOpen()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getLogo() == null) ? 0 : getLogo().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getSubtitle() == null) ? 0 : getSubtitle().hashCode());
        result = prime * result + ((getSubtitleLine1() == null) ? 0 : getSubtitleLine1().hashCode());
        result = prime * result + ((getSubtitleLine2() == null) ? 0 : getSubtitleLine2().hashCode());
        result = prime * result + ((getButtons() == null) ? 0 : getButtons().hashCode());
        result = prime * result + ((getThemeId() == null) ? 0 : getThemeId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getUpdateAt() == null) ? 0 : getUpdateAt().hashCode());
        result = prime * result + ((getLogoOpen() == null) ? 0 : getLogoOpen().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", logo=").append(logo);
        sb.append(", title=").append(title);
        sb.append(", subtitle=").append(subtitle);
        sb.append(", subtitleLine1=").append(subtitleLine1);
        sb.append(", subtitleLine2=").append(subtitleLine2);
        sb.append(", buttons=").append(buttons);
        sb.append(", themeId=").append(themeId);
        sb.append(", status=").append(status);
        sb.append(", updateAt=").append(updateAt);
        sb.append(", logoOpen=").append(logoOpen);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}